package com.oweight.sagacious.auth.server.application.impl;

import com.oweight.sagacious.auth.server.application.IClientApplication;
import com.oweight.sagacious.auth.server.domain.entity.Client;
import com.oweight.sagacious.common.annotation.Application;

import java.util.List;

/**
 * 客户端：应用层实现
 *
 * @author SAGE
 * @version v1 2019-10-21 09:47:00
 */

@Application
public class ClientApplication  implements IClientApplication {

    /**
     * 获取客户端注册的服务端
     *
     * @param id
     * @return
     */
    @Override
    public List<Client> getClientServices(int id) {
//        return mapper.selectAuthorityServiceInfo(id);
        return null;
    }

    /**
     * 修改客户端的注册服务端
     *
     * @param id
     * @param clients
     */
    @Override
    public void modifyClientServices(int id, String clients) {
//        clientServiceMapper.deleteByServiceId(id);
//        if (!StringUtils.isEmpty(clients)) {
//            String[] mem = clients.split(",");
//            for (String m : mem) {
//                ClientService clientdService = new ClientService();
//                clientService.setFdServiceId(m);
//                clientService.setFClientId(id + "");
//                clientServiceBiz.insertSelective(clientService);
//            }
//        }
    }
}
